package com.yzkj.cpjxc.business.system.exception;

import java.io.Serializable;
public class Message implements Serializable {

	private String title;

	private String img;

	private String content;

	private String link;

	/** 兼容权限拦截信息的提示 */
	private boolean permission = false;

	public Message(String title, String content) {
		this.title = title;
		this.content = content;
	}

	public Message(String title, String content, String link) {
		this.title = title;
		this.content = content;
		this.link = link;
	}

	public Message(String title, String content, String link, boolean permission) {
		this.title = title;
		this.content = content;
		this.link = link;
		this.permission = permission;
	}

	public Message(String title, String img, String content, String link) {
		this.title = title;
		this.img = img;
		this.content = content;
		this.link = link;
	}

	public Message() {

	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}

	public boolean isPermission() {
		return permission;
	}

	public void setPermission(boolean permission) {
		this.permission = permission;
	}

	@Override
	public String toString() {
		return "Message [title=" + title + ", img=" + img + ", content=" + content + ", link=" + link + ", permission=" + permission + "]";
	}

}
